<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>友邦保险</title>
<link href="blitzer/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />
<link href="validationEngine.jquery.css"  type="text/css"  rel="stylesheet" />
<link href="main2.css"  type="text/css"  rel="stylesheet" />
<script language="javascript" src="js/jquery.js"></script>
<script language="javascript" src="js/jquery-ui-1.10.3.custom.js"></script>
<script language="javascript" src="js/jquery-ui-1.10.3.custom.js"></script>
<script language="javascript" src="js/jquery.validationEngine.js"></script>
<script language="javascript" src="js/jquery.validationEngine-zh_CN.js"></script>
<script language="javascript" src="js/group.js"></script>
<script language="javascript">
var G_PID = "<s:property escape="false" value="gpinsu.GI_ID" />";
var GUID='<s:property escape="false" value="formdata.FD_GUID" />';

function ajaxSubmit(){
	$.ajax({
   url:'../json/groupResultJson.action', 
   dataType:'json',
   cache:false,
   timeout:120000,
   async:false,
   type:'POST',		
   data:{guid:GUID},
   success:function(json)
	   {
		  if(json.success==true)
		  {		
				alert('我们会在一个工作日内安排营销员与您联系，谢谢！');
		  }
		  else
		  {
			  alert("提交没有成功:"+json.message);
	
		  }
		},
	error:function(arg1,arg2)
	   {
			alert("浏览器提交失败:" + arg1 + " "+arg2);
	   }
   });
   
   return false;

}// ajaxSubmit() end

</script>
</head>
<body>
<div class="bg">
	<div class="top">
		<%@include file="common_left.jsp" %>
		
		<div class="right">
			<div style="height:330px; overflow: hidden;"></div>
			<div class="content_right">
		<form id="form1">
		<input type="hidden" name="rid" id="rid" value="<s:property escape="false" value="rid" />" />
			<div style="width:404px;  margin-left:31px;">
				<h2>以下是为您试算的保费结果：</h2>
				<h4><s:property escape="false" value="gpinsu.GI_SHORT" />
				<s:if test="formdata.FD_PLAN==\"2\"">
				 [豪华型]
				</s:if>
				<s:else>
				 [经济型]
				</s:else>
				</h4>
	<div class="result_image_holder" style="margin-bottom: 2px">
		<img src="table/<s:property escape="false" value="formdata.GI_ID" /><s:property escape="false" value="formdata.FD_PLAN" />.jpg"  />
	
	</div>
	
	<table class="table1" width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
	  	<td class="firsttd"><span>员工人数</span></td><td><span><s:property escape="false" value="formdata.FD_COUNT" />人</span></td>
	  </tr>
	</table>
	
	<table class="table1" width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
	  	<td class="firsttd"><span>保险期间</span></td><td><span>1年</span></td>
	  </tr>
	</table>	
	
	<div class="numberdiv">年缴保费：
	<s:property value="@com.cfh.util.Tools@formatBigDecimal(formdata.FD_RESULT)" />元</div> 
	<div>（上述保费仅指有社保之情况）</div>
			
	<div class="linkButton2holder">
		 <a href="#" onClick="ajaxSubmit();return false;" class="linkButton2" style=" float:left; margin-left:10px">安排友邦营销员与我联系</a>
		 <a href="form1.jsp?pid=CEB-A&refid=<s:property escape="false" value="formdata.FD_GUID" />"  class="linkButton2" style="float:left;margin-left:10px">选择其他保险产品</a>
	</div>
			</div>
			</form>
		</div>
		</div>
		<div class="clear"></div>
	</div>
</div>
</body>
<%@include file="common_ga.jsp" %>
<%@include file="common_track.jsp" %>
</html>